body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

html,
body {
    overflow-x: hidden;
}

header {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #343a40;
    color: white;
    margin-top: 20px;
}

/* 头部导航栏的微调 */
.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

.navbar-nav .dropdown-menu {
    border-radius: 8px;
}

.navbar-nav .dropdown-item {
    transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 搜索框样式微调 */
.form-control {
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.btn-outline-primary {
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.input-diy {
    width: 75%;
}

.form-diy {
    justify-content: center;
}

.ul-diy {
    width: 50%;
}

.no-static {
    position: absolute !important;
}


.video-section {
    margin-bottom: 2rem;
}

.section-title {
    /*color: #fff;*/
    font-weight: bold;
    font-size: 1.25rem;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    /* 最大宽度 */
    /*padding-left: 5px; !* 左侧内边距 *!*/
    /*padding-right: 5px; !* 右侧内边距 *!*/
    /*margin: 0 auto; !* 居中对齐 *!*/
}

/* PC端图片高度 */
.card-img-top {
    height: 200px;
    /* 固定高度 */
    object-fit: cover;
    /* 裁剪图片，保持比例 */
    width: 100%;
    /* 宽度填满容器 */
}

/* 移动端图片高度 */
@media (max-width: 768px) {
    .card-img-top {
        height: 120px;
        /* 移动端高度 */
    }
}


/* 视频标题样式 */
.card-title {
    overflow: hidden;
    /* 隐藏溢出内容 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
    white-space: nowrap;
    /* 单行显示 */
    font-size: 14px;
    /* 调整文字大小 */
    line-height: 1.5;
    /* 行高 */
    margin-bottom: 0;
    /* 去掉下方的多余间距 */
}

/* 卡片整体对齐调整 */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 保持标题和按钮之间的间距 */
    height: 100%;
}

a {
    text-decoration: none;
    /* 去掉链接下划线 */
    color: inherit;
    /* 继承文字颜色 */
}

a:hover .card {
    transform: scale(1.03);
    /* 鼠标悬停时放大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 添加阴影 */
}

.card-title {
    margin-bottom: 0;
    /* 去掉标题的多余间距 */
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    flex-wrap: wrap;
    /* 允许分页按钮自动换行 */
}

.pagination .page-item {
    margin: 2px;
}

.pagination .page-item .page-link {
    color: #007bff;
    border-radius: 4px;
    padding: 8px 12px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border: none;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
}


/* 外层容器，保持全宽 */
.video-player {
    width: 100%;
    max-width: 1200px;
    /* PC端最大宽度 */
    margin: 0 auto;
    /* 居中显示 */
    padding: 0;
    /* 确保没有内边距 */
    overflow: hidden;
    /* 禁止内容溢出 */
}

/* 响应式 iframe 样式 */
.responsive-iframe {
    display: block;
    width: 100%;
    height: 400px;
    /* 默认高度 */
    border: none;
    /* 去掉边框 */
    overflow: hidden;
    /* 禁止内容超出 */
    margin: 0;
    /* 去掉外边距 */
    padding: 0;
    /* 去掉内边距 */
}

/* PC端样式（宽度 >= 992px） */
@media (min-width: 992px) {
    .responsive-iframe {
        height: 600px;
        /* PC端更高的视频区域 */
    }
}

/* 移动端样式（宽度 <= 768px） */
@media (max-width: 768px) {
    .responsive-iframe {
        height: 245px;
        /* 移动端的高度 */
    }
}

/* 外部容器，限制字幕的显示区域 */
.marquee-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #222;
    /* 底部背景颜色 */
    color: #fff;
    /* 字体颜色 */
    overflow: hidden;
    /* 隐藏超出的文字 */
    white-space: nowrap;
    /* 禁止换行 */
    border-top: 2px solid #555;
    /* 增加顶部边框 */
    padding: 5px 0;
    /* 上下内边距 */
    z-index: 999;
    /* 保证在 footer 之上 */
}

/* 滚动字幕 */
.marquee {
    display: inline-block;
    will-change: transform;
    /* 优化动画性能 */
    animation: scroll-left 29s linear infinite;
    /* 滚动动画 */
}


/* 动画效果 */
@keyframes scroll-left {
    from {
        transform: translateX(110%);
        /* 从右侧开始 */
    }

    to {
        transform: translateX(-110%);
        /* 滚动到左侧消失 */
    }
}

/* 悬停时暂停动画 */
.marquee:hover {
    animation-play-state: paused;
    /* 暂停动画 */
}

/* 链接样式 */
.marquee a {
    margin-right: 50px;
    /* 每段文字的间距 */
    font-size: 16px;
    /* 字体大小 */
    font-weight: bold;
    /* 加粗 */
    color: #fff;
    /* 链接颜色 */
    text-decoration: none;
    /* 去掉下划线 */
    transition: color 0.3s;
    /* 悬停时的颜色变化 */
}

/* 悬停时链接样式 */
.marquee a:hover {
    color: #00bfff;
    /* 鼠标悬停时的高亮颜色 */
}

/* Footer 的预留空间 */
footer {
    padding-bottom: 36px;
    /* 留出滚动字幕的高度 */
}